package o;

import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.appgallery.serverreqkit.api.listener.IServerCallBack;
import com.huawei.appmarket.service.installdepend.bean.GetDetailByIdResBean;
import com.huawei.appmarket.service.installdepend.bean.GetDetailByIdResBean$DetailInfoBean;
import java.util.ArrayList;
import java.util.List;

class epc$2 implements IServerCallBack {
    final /* synthetic */ cfc ˊ;
    final /* synthetic */ epc ˎ;

    epc$2(epc o_epc, cfc o_cfc) {
        this.ˎ = o_epc;
        this.ˊ = o_cfc;
    }

    public void prePostResult(BaseRequest o_cvu, ResponseBean responseBean) {
    }

    public void notifyResult(BaseRequest o_cvu, ResponseBean responseBean) {
        int rtnCode_ = responseBean.getRtnCode_();
        int responseCode = responseBean.getResponseCode();
        if (rtnCode_ == 0 && responseCode == 0) {
            GetDetailByIdResBean getDetailByIdResBean = (GetDetailByIdResBean) responseBean;
            List arrayList = new ArrayList();
            for (GetDetailByIdResBean$DetailInfoBean ˏ : getDetailByIdResBean.ˏ()) {
                arrayList.add(epc.ˏ(this.ˎ, ˏ));
            }
            this.ˊ.ॱ(rtnCode_, responseCode, arrayList);
            return;
        }
        this.ˊ.ॱ(rtnCode_, responseCode, null);
    }
}
